package com.math.aistudykbr.service;

import com.math.aistudykbr.pojo.entity.ChoiceQuestion;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface IQAService {
    List<ChoiceQuestion> generateQuestions(Long materialId, Integer count);

    List<ChoiceQuestion> getQuestionsByMaterialId(Long materialId);

//    Boolean submitAnswer(Long userId, Long questionId, String answer);

    @Transactional
    Map<Long, Boolean> submitAnswersBatch(Long userId, Map<Long, String> answers, Long materialId);
}
